import { defineStore} from 'pinia'
import { ref } from 'vue'

export const useChannelStore = defineStore('channel', () => {
  // 提供channelId数据
  const channelId = ref(0)
  // 提供修改chanelId的函数
  const changeChannelId = (id :number) => {
    channelId.value = id
  }
  return {
    channelId,
    changeChannelId
  }
})